added option for building with java support, ldconfig should be executed after install