Add explicit casts to prevent GCC from issuing warnings in C++11 mode
Tweak setting of -std=c++0x command-line flag

- Use CMAKE_COMPILER_IS_GNUCXX instead of LINUX to detect GCC (OS != Compiler)
- Set CMAKE_CXX_FLAGS instead of using ADD_DEFINITION (the latter is
  intended for preprocessor definitions and also affects C code)
Remove generated file from git
Change string constant from char* to const char*
Generate header files in binary dir not source dir

The previous rules were fundamentally broken when building in a
different directory to the source, leading to configure-time errors
about missing files.
Remove .lib suffix from library name