a few small changes for Windows builds

- move as<> and wrap() for QL::Date to src/ to avoid multiple symbol linker issue
- add -fpermissive as a stop-gap for a failed 'long long int' conversion
- add OpenMP support on Windows to silence some other warnings