Resolved Linking errors and compilation errors for c++ build