Fixed sq_getversion bug. Will fix others later.