fix compile error in VS 2012

change 'barier' in line 815, 822 to 'barrier'