Update libngf client library.

Use proper version in pkg-config pc file and various small fixes to the library and example.
Does not really matter, but glib already provides similar GPOINTER_TO_[U]INT / G[U]INT_TO_POINTER macros.