Also check for mode_t. Fixes Windows compilation.
Merge branch 'master' of https://github.com/Ensembles/ert into windows_compile_fix
Merge pull request #465 from perroe/windows_compile_fix

Windows compile fix