use CMAKE_CURRENT_BINARY_DIR to better support subproject builds
Fix #define and header protection to use correct project name/location
Merge commit 'refs/pull/113/head' of https://github.com/Eyescale/Buildyard