Tidied up CMake scripts and added code to search for the SDKs CMake modules