change into the BUILD_DIR before doing any compiling