This solves compilation errors for readFileNifti and writeFileNifti.