rar: add support for rar-5.00

https://bugzilla.gnome.org/show_bug.cgi?id=707568
rar: fixed some compiler warnings
rar: use a more solid way to get the version number

parse the version number directly
rar: make a condition clearer