Fixed LbpMrf for VC++

Fixed some issues suggested by Craig Henderson and some additional bug
fixes

https://github.com/cdmh/bgslibrary/commit/4382d2c33245409184603ac0bb1384cf18f75fcb