Fixed make error on non-Windows environments

Replaces pull request #1138.