Remove useLibraryButDoNotDependOnIt hack
Merge pull request #1009 from gzm0/unhack-build

Remove useLibraryButDoNotDependOnIt hack