Fix build warnings and update project settings.