Fix linking issue.
Added gitignore.
Merge pull request #2 from duga3/master

Fix linking issue and add gitignore.