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

Add patches for support Haiku (https://www.haiku-os.org)
maybe you're right