Fixed Haiku port and dependency checking.
Merge pull request #339 from rgsilva/master

Fixed Haiku port and dependency checking.