Buildfix for Blackberry

1. nullptr is not defined
2. rint is already defined in cmath an std namespace.