Add changes that make Paladin work on latest Haiku nightlies
Final edits for making Paladin build on Haiku