Fix build for macs that have the mac JDK layout vs. standard JDK layout

Add two profiles activated on the presence of tools.jar or classes.jar to support standard and mac JDK layouts.