add debug flag to build script