Fix the raspbian config and clean a little bit

fix the raspberry pi config and the ARM atomic operation Compare and swap Res

sqCompareAndSwapRes
should update the Res value before the end of the operation. the previous code never change the Res value.