BGS library with corrected issues to compile and work on VS2010 and OpenCV 2.4.8