Fix END freaking out bison, also SHARED not working on Windows.