fix compilation with g++

extern and inline cannot be combined (in g++ 4.7) together in this way
and doed not make sense either. Rather use 'static inline' which makes
the function inline, but does not export it in resulting .o so no
symbol redefinition occurs.
Merge pull request #4 from pinkavaj/inline_fix

fix compilation with g++, extern inline vs. static inline