This can be resolved by
- create the .def file using the spec file
- Link the application to this dll whicle building the application executable