work on issues #141, #79, #142
work on issue #79 (not finished)
[sc-memory] Replace uint id's in sc_event by sc_pointer (void*);
Fix synchronization of sc_events table;
Fix compilation on 64-bit platforms
[sc-kpm] Work on issue #146
Fix compilation for 64-bit platform (done issue #151)
Fix lock errors and empty slot counter
Add cleanup of events memory on element deletion
Fix bug in iterator3
Fix elements deletion
Fix compilation flags for release
Improve threading test
Merge pull request #153 from deniskoronchik/dev

New synchronization mechanism