PROTON-772: Fix portability bug in original commit - use compat_types.h instead of stdbool.h directly.