Fix encoding warnings and remove deprecated compiler flags (e.g., garbage collection and zerolink).