Fixed compile issues on Linux, modified .gitignore to exclude output directories.