Fix install script.
Fix logging crash on Windows. Weird initialization problem.
Merge branch 'release/0.5' into develop