Fixed building sqlite3 on non-GNU platforms