compiler/libec: Fixed new memory leaks
ecere/gui/XInterface: Fixed compile issue on Semaphore in FreeBSD