Also, in platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c, the comment "//There is always an TTY to write into for Unix and Mac" (and hence the implementation) is wrong. It should be something like
sqInt sqStdioDescriptorIsATTY(void) { return isatty(fileno(stdin)); }