- Fixed compile issues on Windows with Visual Studio 2013
- made compiler flags dependent on the compiler being used
- added check for clang to use the same compiler options as gnu g++