Fix build on Windows
Add configuration for preload file