multiplex IO support; cleanup and add some commenting
fix improper quotes
disable compiler optimization on unit tests
remove pthread references