Fix for compat.h
Fix global variable name clash