fix building on gcc 4.6