Fixed a missing def in Linux and cleaned up some linux warnings