fix compile error in VS 2012

change 'barier' in line 815, 822 to 'barrier'
Merge pull request #35 from maslbl4/patch-1

fix compile error in VS 2012