Did fix bugs that occured for g++ (added missing stdint header and fixed a conversion bug)
Check for c++ 11 compiler and set the c++ 11 flag on g++