GCC 4.7 compatibility / workarounds