Enable global constructors, use them in Leanpub example