Fix warnings about comparisons always evalutating to true when not using weak symbols for pthread functions.