Changed some variables. Also tested compilation on Windows.