ifdef'd out the pthread object instantiation