Fix some linker flags that were apparently causing build failures
Namespace hsbuild libraries by target name to avoid conflicts