Buildfix for Blackberry

__cplusplus won't be defined in second group of #ifdef's.