changed to use a build directory outside of the source directory