fixes for BSD/OS [bug 461 (#461)] and some fixes for dynamic loading on Win32 Rev: src/configure.in:1.435