fix #236 try no. 3?!

allow compile where SOURCE_DIR != BINARY_DIR