fix linker error with -O0 and c99
Merge pull request #13 from tony2001/inline_c99_fix

fix linker error with -O0 and c99