removing a few gcc warnings
Don't use GNU extensions to C++