fixes build error
Merge pull request #1158 from williampma/BuildError

fixes build error