Make PREFIX, MANPATH and CFLAGS optional variables

This change will make it possible to override PREFIX, MANPATH and CFLAGS
using environment variables. This makes the Makefile a little more
flexible, benefiting both endusers and those porting to package systems
like FreeBSD Ports and pkgsrc.