Make dependency on javac optional

dependency on javac can be avoided with the following syntax:

  ALL_JAVA_PROJS="" JAVA_SAMPLES=""  \
  make PLATFORM=Arm

The change is backward compatible