Ross County boss McIntyre: Hamilton win was vitally important