Fixes to CMakeLists.txt

- Continue processing if libraries are not found (so that all missing
  libraries are reported)
- Set compiler flags correctly if CMAKE_BUILD_TYPE is not set (fixes bug #0)
- Make CMAKE_BUILD_TYPE=Release the default
- Increase optimisation level for Release