Modified makefile to work on FreeBSD