COMP: Fix build on Windows

Ensure correct decl specs are setup for Windows build. Plus
add missing source files.