Ahhh, as I thought, you didn't link to the libs...
Well, seriously, maybe I should add this pragmas to the codes (GCC doesn't care about them, just ignoring them)...
Now, for your questions:
to get the sizes automatically doesn't work, because the mesh is simply a single mesh with one bounding box and joints don't have bbs...
to know what index is for what bone is another problem...
the only way would be to load the bone names when loading the mesh...
than you can compare/check this names...
but this can't be done in the mesh itself, it has to be done within the mesh loader (it's a missing feature of the loaders)...
If I have a little bit of time, I'll have a look for this, but I can't promise you if and when I can do this, sorry...