In the end it was easy to build a C++ DLL which exposed the required BGL functionality.
I found a simple example DLL project at http://www.autoitscript.com/forum/topic/131058-example-dll-in-c-visual-studio/ and simply included the boost libraries within the project configuration.
My exposed function simply called the required BGL features and returned the result.