small fixes for bitcinj head