Did you use A4000/040 profile on WinUAE when you installed OS3.9? If you used whatever model profile with a 020, then perhaps 68040.library was not installed, and this is what you get, or perhaps you don't run Setpatch in Startup-Sequence, so 68040.library is not loaded.