got rid of pthread compile error