Fixed console/io for darwin (O_NONBLOCK value was wrong). Fixed 2048 sample.