bug fix in build system