Fix oracle under windows

Fixes issue #294; related discussion in issue #305. Doesn't include PR #313, that needs to be merged separately.