Fixed issue that caused error on Windows due to MSG_DONTWAIT not being
available. Added ability to set a logger in the interface class.