Fix legacy BlackBerry build