Change deprecated types for OTP 17