Fix JSMESS build on Ubuntu 12.10 (nw)

thanks to Vito for debugging this