remove glib dependency

it was only used for the performance test anyways.
add an unref of self at end of main