Parse compiler output for defines

I made this because generating the bindings for libgit2 was failing on my linux box.