Report: BlackBerry to layoff 40 percent of workforce