Git ignore and other build fixes for git.