kbuild: fix building with O=.. options