Replace stdio functions.