Merge pull request #379 from thefarcry118/master

GPUCommon iterator cleanup
fixed compiling error