Refs #340. Fixed SEGFAULT bug of dgemv_n on OSX.