Add overflow checks for opj_aligned_malloc (#841)