Added preprocessor support for OS X in SDL2.nim

Allow dynamic linking to SDL2 on OS X