fixes for exceptions and building the j4pclient