Fix non-GCC CompExchangePtr implementations