Fix BlackBerry C++ builds