(-Wall) Fix minor warnings
(setup) Minor fixes for win32
(osx) Rewrite script to build app bundle