fixed CMake Policy 0037 bug (compatibility with 3.0.0) and put absolute paths for out-of-source builds