add haiku support, patch by Paul Davey!