Remove explicit subdir and add install to cmake
Attempt to silence g++ warnings