Fixed initializer order warning.
Added missing linker dependency.
Fixed SAL define and MinGW standard library argument collision.