Update for recent changes in master

Remove sqlite config_* stuff and CC CXX, not needed anymore,
setup pkg-config env.