Switched to glib's options parsing.