Misc fixes

Fix build-hdd and allow (partly) building as non-root.