Fix nscount for non-glib system