Fix some small issues in stdio + Add ctype implementation (WIP)