mac os x support

Added if-else to CMakeLists.txt to differentiate between unix and mac os x. Before it was generating an
`nvcc fatal   : redefinition of argument 'compiler-bindir'`
error. Unsure whether this is unique to the mac though.

Furthermore, compiling with the c++11-flag generates incompatibilities with some of OpenCV's highgui-functions.