fixed building on gcc 4.7