Necessary checks and macros for prepared statement support implementation.