Remove sneaky unused variable; For windows, include windows.h and undefine ERROR before including S4R.h