Fix warning if EZSQL_ERROR is missing

Fix some warnings and notices