Fixed a few minor compile errors in freevars