fix compile for GCC 4.7