Fixes to build on Ubuntu (13.10)

Building this on Ubuntu 13.10 needed a couple of fixes to the Makefile. Also added an ignore file for convenience.