Make io buffer first write. Port to new makelib