Fix build failure on windows

Add explicit constructor to struct instead of using brace initialization.