update .gitignore
update build system for better mac-linux support