Fixes AMQ-5176: Support building ActiveMQ using Java 8 JDK