Add mkBuffer helper function
FFI: pushStdin: don't send the signal on zero packages