Added conditionals to support Windows.