ebuild: filter --as-needed out of linker flags
Merge pull request #472 from karolherbst/ebuild_fixes

ebuild: filter --as-needed out of linker flags
cmake: add -Wl,--as-needed linker flag
npwrapper: add missing dependencies, also reorder a bit
cmake: remove -lpthread from linker_flags

also link against CMAKE_THREAD_LIBS_INIT where missing

cmake: link crashuploader against thread libs

cmake: add some more linker libs

cmake: link webcore against thread lib
cmake: OpenSSL is only required if we build curl
npwrapper: add --no-as-needed and link against GTK
ebuild: we don't to filter out --as-needed anymore
Merge pull request #463 from karolherbst/gentoo_bugs

Gentoo bug fixes
Merge pull request #467 from matthiaskrgr/PKGBUILD

Pkgbuild
cmake: fix issue on mingw in SetInstallPath
cmake: use unix compilers on mingw
cmake: add some mingw resources

there are needed with revent w32-mingw32 versions. They are needed to create missing import libraries
cmake: fix external project building on win32

everything should compile fine on both mingw and msvc

v2: fixed a sh assignement error
desurium: add #ifdefs for mingw

in some cases we have to use the unix API, where mingw has not access to specific windows functions
in other cases we have to use other functions
common: add missing declarations on mingw
threads: add comment and disclude not understandbale code on mingw
cmake: add missed include directory on mingw in util
usercore: fix compile error on mingw
cmake: fix some mingw linking problems