From author and MAINTAINER Laurence Tratt, with a minor tweak from myself to correctly pass down CFLAGS.