Some mutability fixes in the bindings
Workaround for the XEvent union

Idea taken from https://github.com/marianoguerra/hkwm
Wrap a couple more functions in the lib