fix threading macro bug
Merge pull request #37 from ptaoussanis/feature/fix_threading_macro

Fix Threading Macro Issue (@sritchie)