Fixed VS compile issues.