added includes to not use internal write, read in Console and Unix