Dump log on build error, add better pacificasdk directory on cross compile.