update to compile on latest rustc

closure syntax has changed. Need to update cgmath for it to work.