with STATIC_H3D flag, VC++ compiles static libs.