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

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>