Clean up library dependencies for hwcommon and device-node