fix remote ptr omission in cswap; add incomplete __shmem_add template
add GCC intrinsics for add+fadd