Add -std=c99 -pedantic for warning check
Fix some warning after enabling warning check.
Add my version of c library