Change order of C and C++ compiler on MacOSX

Because gcc on MacOSX is too old.
Redefine leaf function as inline function
Improve regexp
Bump up version and update Changes