Fixed linux build and squelched some warnings