Fixed Linux compile errors

This was tested on two different Linux based Operating Systems and they both compiled fine.

These updates were also tested ingame and everything works as intended.

This was also compiled on Windows to insure no errors existed there.