make 'unfold' compile by adding missing includes and library dependencies
cleanup some .gitignore files