Specified a library target type in package.json -- dub was suddenly compiling the library as an executable.