Fix boost-atomic linking issue for g++ 4.7+ when __GCC_ATOMIC_BOOL_LOCK_FREE == 1