Fixes errors on Linux
Do export header the right way
Perform install on Windows too
Make sure to install system libs on windows
Merge branch 'linux-fixes'