Implement mprotect function for Windows.

Fixes #79.