Move b3d structs to a header
Add static B3D export support