use int instead of bool in struct definition for portability. thank tokuhirom.