Set -mx32 flag for x32 build
Additional flags for static builds
Better handling of glib-2.0 include pathat in libdir