Added compatibity for 1.5 libraries layout on IDE 1.0.x

See #1765
Merge branch 'master' into ide-1.5.x

Conflicts:
	app/src/processing/app/Sketch.java
	app/src/processing/app/debug/Compiler.java