resolve #26 causing lthread not to compile on osx