Changed to use more c++11 features.
Fixed file pointer leak.
static file support. vc12 support.