main: Include missing header

https://bugzilla.gnome.org/show_bug.cgi?id=723065
main: Correct type of argv argument to main()

https://bugzilla.gnome.org/show_bug.cgi?id=723065
main: Correct g_critical calls

https://bugzilla.gnome.org/show_bug.cgi?id=723065