Fix for Portability

@quiver provided a fix that works in [Issue #2](https://github.com/jpignata/backchannel/issues/2). This is simply the implementation.