Fix a bug; add overloaded template functions

* Include unistd.h in BTerminalIOHandler on UNIX-like systems
* Add bRet and bSet templates for 4 argument-value pairs