Cmake cpp11 support

Add support for compiling with C++11 flags. Also adds build targets for this to travis, and removes now unneeded apple hack.