openmp'd version works in linux... not in matlab.