This reverts commit bcfc0a9051014437b55ab932d9aca5ecdca6776b. The build is broken with shared library enabled.