Fix gracelib bugs reported by C compiler
Fix copying error in loopinvariant sample
Make compiler look at list of locations for import
Fix compiler ignoring grace files when .gcn file exists
Remove redundant code looking for .gcn files
Fix compiler not finding imports on a external path
Compiler finds dynamic modules at right locations