Use the lowest glib version possible

Use glib major/minor version constants to determine the correct
function calls for g_ptr_arrays and type system initialization.
With this commit we depend on glib-version >= 2.16.
Use minor version in check instead of major.minor
Replace old README makefile target with README.md
Ignore makefile products