fix mac os compilation

Fix some parameters for Mac Os X compilation and icon