Don't link surface against io (closes #235)

Thanks to wjwwood for noticing.