Fixed a few linux build issues.