Link both dynamic and static versions.
Rename executables to simpleencoder.dynamic and simpleencoder.static.