fix compilation issue on ubuntu 13.04, pthread and dl must be explicited linked

Change-Id: I215e0c9a7a2ca1d07fb76b0229ad35b85a04aabe