Changed to lib type. Refactoring forward declarations for faster build times.