Fully buildable commit

Added automake build infrastructure
C resources compilable
Updated gitignore to deal with automake leftovers