Fix some linux build issues