fixes build on windows

different compilers have different levels of strictness. for now, link
all dependencies to both encoder and decoder. in the future, find a way
to remove unnecessary dependencies.