ifdef pthread_debug to fix build from new build repo changes
Signed-off-by: Paul Beeler <sparksco@gmail.com>