Fixed warnings and modernized build settings