Fixed compilation issue with Linux pthread mutex

Signed-off-by: sebhz <seb@zyglute.fr>
Reimplementing a simple timer with pthread

	+ some minor little fixes

Signed-off-by: sebhz <seb@zyglute.fr>