Fixed undefined functions on Windows