some build system improvements