gradle support
ignoring build/
fixed a few bugs related to the header not being correctly built