Fixed build errors on Win64.