Fixed some linux build issues