adjust compiler memory settings to compile permutations successfully
fixes for spatial filtering
Merge pull request #76 from ridoo/master

merge fixes