Support Win7 64bit system

Windows 7, 64bit system. CUDA 6.0, more details in wiki.
Add #if USE_LMDB  #endif to mark the lmdb part.