[win32] only define NOMINMAX if it isn't already defined
[win32] get rid of atoll() define
cmake: honor ENABLE_STATIC flag in call to add_library()
cmake: fix installation on win32
FileTimeToTimeT() is only needed on posix platforms