Removed leak in fit_wrapper.
Changed setup script to handle imfit libraries using pkg-config. Not sure if this is the best way.