Changed some compiler flags for Clang and MSVC
Code does not appear to compile with Clang, probably because of library
compatibility issues. Still to check and fix this error.