Fix "Unable to get/set thread priority" bug
Merge pull request #517 from mxfm/unabletoset

Attempt to fix "Unable to set thread priority" bug