Fix BlackBerry compile