fixed compiler error...whoops
Merge branch 'master', remote branch 'gparmer/master'
issue with core_get_curr_thd()