After a quick look at cmake, it seems reasonable. Please use feature tests rather than OS tests. (By that I mean that if Solaris needs "foobar.h" and RHEL needs "sys/foobar.h" to get the definition for foobar, the code should ifdef whether they need sys/foobar.h and not if it is solaris or not.)
On a related note, on what platforms does the native code currently compile and work? I've compiled and tested on: RHEL & CentOS 5 RHEL & CentOS 6 I've heard of it compiling on: Solaris What other ones are out there?