Fixed some warnings (signed/unsigned mismatch etc.).
Added Eclipse project files; updated .gitignore
Fixed compatibility with Windows.
Fixed some propagation problems.
Merge branch 'engine' into bhs-sim

Conflicts:
	.gitignore