Fixed bug with memory limits in the windows-build