GNU C++ compatibility patch