Haiku port.
Merge pull request #200 from rgsilva/master

Haiku port