Fix adding pthread to YARP_sqlite