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

Add patches for support Haiku (https://www.haiku-os.org)
Why not a
```cpp
#elseif !defined Q_WS_HAIKU
```
? 
It will save from using the last endif and make the code more readable.