Fix Cmake scripts when libaio and snappy is not installed
Fix Cmake scripts when libaio and snappy is not installed