Fixed a few memory leaks
Added VS2013 build directories to gitignore