Fix Makefile to add references to sqlite3 and pthread to build on Ubuntu Trusty 14.04