register winclasses and setup basic winprocs