Restructured parallel code to deal with Windows split memory