try to speed up build process by forward declare classes and use a static object for shared source files