Build still broken. Added TRACE() mechanism.

Fixed semaphore bug by adding sem_unlink() function. Refactored
Makefile.