Define __STDC_LIMIT_MACROS
Include common.h
Fix BT code to be more qualia-compliant and compile under Arduino