fixed possible redefinitions on windows