Legacy functions removed from libRanger.
Fixed some errors founded by static analyzer.