Take advantage of the new fmt function.
Remove last references to C libraries.