C based window event handlers

I've tried out switching to C based window update handler. It has backwards compatibility with the rct2 code so it should slot in okay. The only issue i can think of is if there is another function that calls window update on all windows. I haven't encountered that yet though.