improve kate on haiku os

incooperate the sole patches needed there from
haikuports
1 job for master in 5 minutes and 55 seconds (queued for 5 minutes and 14 seconds)