Solaris compatibility

Hi!

Here are small changes I made to make capnproto build and 'make check' pass.
I used clang 3.2 with libc++