Fix compiler errors

this requires https://github.com/tych0/xcb-types/commit/544c3d299a250d3c66179fc5484e1e4d127b8052
Parse all typedefs before emitting structures