add debug options to build scripts