remove the -fpermissive flag

so gcc wont lower some errors to warnings
remove redundant cast

remove ::Path() ...required by fpermissive removal
Merge pull request #177 from breznak/gcc-remove-fpermissive

Gcc remove fpermissive