Adding Solaris support for atomic operations based on the comment at:

These small changes add Sun Studio support for SPARC and Intel-compatible architectures.  This should fix issues #29 and #30.