resolve undefined references

fully link internal dependencies, needed for creating dll
Merge pull request #2 from tkelman/linkage

resolve undefined references