Fix hanging at the beggining of the program

Needed to return buffer size of 1 in the `alloc_buffer_cb` to ensure libuv calls
`read_cb` every time a byte is read from stdin.