Fix build for separate objdirs