resolved "unresolved external" issue when building with visual studio