Add back static library. Using -Wl,--whole-archive will allow us to preserve all symbols.
Mute factory registration message