[Hackage] #398: better support for static linking