Default to static linking on both MSVC and MINGW
Remove unused CMake function
Ignore another warning to make mingw happy
Hack to allow toolchains to pass flags to mingw
Set the boost thread api for mingw
Change to -static gcc flag
Hack to add pthread to link libraries on mingw

This should link winpthreads.  We really shouldn't be passing these this
way, but that seems to be the existing solution, and it works for now.
Remove unnecessary else
User setting to turn LTO on and off

This isn't currently working on mingw
Change Windows include to windows

mingw is case sensitive
Correct includes for mingw in slow-hash

This needs testing
More preprocessor fixes for slow-hash
Another preprocessor fix (difficulty.cpp)
msys2 32/64-bit toolchains
Force CMake to link the runtime statically
Use unwrapped binutils for msys2

The default binutils wrappers are built without plugin support.  This will streamline the build process until we decide to start supporting LTO.
Fix march flag for 32-bit build
Move toolchain files
Use LTO by default

The mingw toolchains override this for now.
Fix time_t serialization issue

On 32-bit MinGW-w64, time_t is int32_t.  The existing code was serializing
time_t directly and implicitly assuming that time_t is int64_t.  This commit
formalizes that assumption by serializing int64_t directly and casting to
time_t where appropriate.

Thanks go to greatwolf for reporting this issue.

monero-project/bitmonero#88