Fix compilation error under NTS
Merge pull request #1641 from sjinks/1.3.0

Fix compilation error under NTS