Problem: new class source does library include too late

Solution: this must be done before class structure definition.
Merge pull request #106 from hintjens/master

Problem: new class source does library include too late