script.h: fix msvc warnings