LD_FLAGS renamed to LDFLAGS to match implicit variable
Made version numbering more verbose.

Version tags are now in the form vMAJOR.MINOR.PATCH[-description]. Presumably most distributed versions will be tagged, therefore the in many cases the revision number adds limited information. The patch number allows more control to differentiate minor changes, bugfixes, etc.