fix compilation errors on jblas ndrray