Fixed some pointer mismatches, etc, need to change sem_wait/sem_post to mutex appropriate calls.
-Frank Dye