fix crt security warnings