Add configuration for pre-compiling as a static library

Temporary fix until Dub is updated to do this automatically.
Shouldn't break anything (first configuration is picked up by default)
Tested on OS X.