fixed #1703: fixed compilation errors for BlackBerry.
Merge pull request #1983 from dumganhar/master

fixed #1703: fixed compilation errors for BlackBerry.