Add build-haiku.sh script
Haiku fixes, patch 1/2
Haiku fixes, patch 2/2