Fixed the wrapping of free functions when using the single-file option.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #326 from ddobrev/master

Fixed the wrapping of free functions when using the single-file option