fix compilation with GCC 4.6.1