Update for CVE-2013-1347

This mainly updates the RopDb usage and mstime_malloc usage.