Fixed setup to work with eclipse, and also compile errors