GCC 4.7 compatibility patch