GCC 6 defaults to '-std=gnu11' for the C language, which has different semantics for inline functions and triggers build errors. Fixes #2385