build hardware/libhardware_legacy

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
fix -Werror=unused-result

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
support Debian natively

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>