Ahem. @rsmith has just pointed out that there probably is a bug right at the point that check is performed (all entirely my fault ). Could you try changing this line (core/file/nifti_utils.cpp:516) to
Q.coeffs() = -Q.coeffs();
then ./builld
again and see if that fixes it – preferably using the original threshold of 1e-6?