Fixed lcm-gen to build properly in windows.