upgrade: add ifdefines
upgrade: add ifdefines

This makes it possible to correctly link against the system sqlite. Also, don't
use defers with log.Fatal() since they won't be run on exit.

Signed-off-by: Christian Brauner <48455ab3070520a2d174545c7239d6d0fabd9a83@canonical.com>

xeodou/go-sqlcipher,helight/helight_code,accense/go-sqlite3,danderson/go-sqlite3,helight/helight_code,helight/helight_code,mattn/go-sqlite3,helight/helight_code,accense/go-sqlite3,mattn/go-sqlite3,helight/helight_code,lyonel/go-sqlite3,helight/helight_code,lyonel/go-sqlite3,danderson/go-sqlite3,accense/go-sqlite3,helight/helight_code,xeodou/go-sqlcipher,danderson/go-sqlite3,helight/helight_code,mattn/go-sqlite3,xeodou/go-sqlcipher,lyonel/go-sqlite3,helight/helight_code