add patches for Haiku [Thanks to Diger]