Added support for building on Windows

- no longer uses 64-bit exclusive SSE intrinsic on 32-bit builds
- moved "optimize-dimensions" flag up to the "build" command and added
  "cpp-opts" flag
- fixed ambiguity warnings in on 32-bit builds
- fixed signed/unsigned comparison warnings in py_common.cpp
- render module now initializes threads when threads haven't been initialized