Modify plugins to Haiku support

Also part of GCI task http://www.google-melange.com/gci/task/view/google/gci2013/5066544212082688