Fix build warnings. Update to recommended project settings.