gdal: fix sqlite, expat and libtiff detection

* fixes following configure errors like:
  checking for SQLite3 library >= 3.0.0... yes
  cat: /OE/sysroots/qemux86/usr/lib/include/sqlite3.h: No such file or directory
  /OE/work/i586-starfish-linux/gdal/1.10.1-r0/gdal-1.10.1/configure:
  line 25411: test: !=: unary operator expected
  configure: WARNING: Can not find SQLITE_VERSION macro in sqlite3.h
  header to retrieve SQLite version!
* and autodetected expat support which sometimes tries to use host
  version from /usr/include

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>