enable c++ support

cmake build system allows choosing this
on msvc it's automatically enabled depending on the compiler version (msvc2012 or higher)
AlphaMode is now typesafe
use unique_ptr instead of auto_ptr when c++11 is enabled
Merge pull request #191 from oli-obk/c++11

C++11