made windows compilation work for dlls