Add preprocessor cleanup functionality
(Taken from https://github.com/rsinger/free_cite)