Fixed CMakeLists out of source builds and missing cstring include