fixes for cross-compile
- under Arduino SDK max is a macro, so arguments can be different. Under regular gcc max is a template function expecting same types for a/b - the 127 constant is by default an int, not an int8_t.
- config.h needs to come from the include path and not look in the current directory first