Fixed Haiku port and dependency checking.