The most funny tidbit is extern int select(); which totally breaks compilation in a C++ compiler even if you wrap everything into extern "C" block. Regardless of that, the declarations in the system headers may have additional attributes set that may or may not cause conflicts with the redeclarations down the road so libbg-dev should not redeclare them.
This looks like it was never forwarded to upstream. Will do so to get their opinions on the issue. Regards Phil
forwarded 1038112 https://github.com/bruceg/bglibs/issues/3 Actually forwarded. Regards Phil