build system: fix build in separate obj tree
4 files changed