linux build fixes