Fix compilation problems; add Eclipse files