replace OS_INLINE with static inline