mv public functions from public to utils.c, and fix gprs.c build fail issue.