Add -pthread and mrproper