fix Wsign-compare warnings

https://bugzilla.gnome.org/show_bug.cgi?id=710875
don't use reserved c++ keywords class, namespace and throw

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