This improves dependency copying and adds separated debug/release install files.
CMake now works on all platforms