Fixed compile error on gcc 4.8.0