Fix segfault in core/io and update capstone