Add patches for support Haiku (https://www.haiku-os.org)

Add patches for support Haiku (https://www.haiku-os.org)
are you able to push an updated version?