Fixed all linking errors