This is the library I use to allow a cross platform/OS builds. I made it mostly macros for kicks...