Stop using atof and memswap which have been removed in newer NDKs.