Added checks for openssl and sqlite3, as well as fixed a bug in the compilation check.