Shift the implementation of setThreadName out of the header