Fixes fpermissive warning on gcc 4.8.1