Fix GCC -fpermissive error when using default compilation options