Implemented 32-bit atomic functions for Windows

Some testing is needed