usercore,servicecore: fix loading of scriptcore.dll
cmake/sqlite: add dl to Linux linker

fixes #406

NOTE: this is a candidate for the stable branch
Merge pull request #589 from karolherbst/win32

usercore,servicecore: fix loading of scriptcore.dll
Merge pull request #592 from karolherbst/bug406

cmake/sqlite: add dl to Linux linker
version: note #406 fix in changelog