Fixed some warnings coming from -fpermissive