Fix adding pthread to YARP_sqlite
Merge branch 'master' into yarp-2.4