make MW work with names requiring encoding
add -deprecation to compile flags