Fix rewrite.py for include #defines
Update .gitignore
Improved rewriting of relative paths
Make ABI prefix and suffixes work relatively