use c++11 instead of (deprecated) gcc extensions and intrinsics