Added a implementation for waitconditions for unix.