_control87 doesn't really give the x87 control word, using inline asm instead (32-bit only). Also change from fstcw to fnstcw.