wscript: fix gcc-based build