build: fix issues exposed by build options
release: 0.1
Fix out-of-tree builds