Added custom targets for autotools-based builds.  Added some checks to the postinstall script template so that it would exit if git wasn't found on the system. Also changed it to specify LIBS in case of static-only build.