Fix build with separate objdirs