Added profile to enable building in java 1.7