solaris: switch solaris atomics to a generic implementation based on C++11

Hopefully this will reduce porting efforts.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Merge branch 'atomics'

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>

Conflicts:
	build.mk
	external/x64/acpica
	external/x64/gcc.bin
	external/x64/glibc-testsuite
	external/x64/glibc.bin
	external/x64/misc.bin
	external/x64/openjdk.bin