fix for buffer and functions names in gcc
made init functions static, not static inline