Fixes for out-of-source build.