fix build warnings
remove unused cflags in Windows