Fix windows build
Add def for  Visual Studio
Revert "Add def for  Visual Studio"

This reverts commit 38fb300d253d777efd43694b6c3ff647fa3f9aae.