Fix build, honor acceptAnyCertificate, close #644