Refactoring for VS2013 & Alea.CUDA v1.2