Fixed snprintf unresolved symbols and cleaned it up a bit.
Implemented visual studio adapter for posix_memalign.
Implemented visual studio versions for lt_dlopen, ltdlsym and lt_dlerror.