Fix gtk_glue conditionals
Add GApp* support
Fix windows compilation

Unsigned long is 32 bits on windows.
Fix link errors on windows