Export BUILD_DIR to build.pl

So that it knows where to find all its executables.