Implemented condition variable for Darwin. Resolves Issue #2.
Leak less memory and fix the compare.