Fix API name consistency.

Corresponding API changes are listed in

https://gist.github.com/aitjcize/7707148

use sed -f changes.sed *.c *.h to update API names.