Check classpath before loading libraries.

Should make it easier to load in Eclipse.