Add some multiple architecture support.

Currently this is Linux, Windows, and Solaris platforms only. Note
though I've only tested this on Linux/gcc.