Fix undefined refs to subhook symbols when built as static library

This fixes issue #32.