Update build settings, fix warning