Support Windows 7 64bit VS2012 and fixed CUDA grid blocks limited.

1. Fixed bug of CUDA max grid of blocks limited.
2. Support Windows 7 64bit VS2012 
3. Add USE_LMDB for LMDB in Makefile.