Implement correct window show/hiding in OS X.
TODO: think about not-deprecated replacement for GetFronProcess and
ShowHideProcess.
Fixed target_link_library in CMAKELISTS.
Added comments.