Recovery of oil via acid-catalyzed transesterification