Upgrade libs and modify require_otp_vsn
Fix deprecated codes