Main window centered, make targets prepared for build on MacOS and Windows