Fix setThreadName call (only implemened on OS X)