Enabled warnings on Linux. Fixed a plethora of gcc warnings
Some more warning and 64 bit fixes for Linux/gcc