Fixed stream-bug in Grid.cu. Fixed compiling error with SEEK_SET etc.