Cmake-win

Added support for out-of-source builds.

Need verification that this works for both linux and windows.