Linux mutex as binary semaphore

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Moved default values to a central include

- mem_alloc/free renamed to mem_new/delete for better uniformity

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Makefile.dep generation now takes .h files into account too

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Added rwlock init/delete functions

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Improved auto Makefile.dep generation

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>