Fixing compile error on gcc 4.8