fix load function to workaround bug in gcc on linux.
fix load function to workaround bug in gcc on linux.

GCC implementation of C++11 does not correctly compute the type of auto
variable, which creates problem for load method, creating temporary
variable with exact type to store the value fixes the issue.

mshary/itv,mshary/itv,mshary/itv