NetBSD (and OS X 10.4/10.5) support

This patchset adds some things to CMake that allow SuperGameHerm to compile on GCC targets older than 4.6, which is necessary for support on NetBSD and older (PowerPC) versions of Mac OS X.