Removed calls to unsupported functions

Pebble doesn't support malloc/free/sprintf