Synchronise makefiles, add BSD makefile for Linux.
Merge pull request #19 from andrewshadura/andrewsh/makefiles

Synchronise makefiles, add BSD makefile for Linux.