Removed strdup function for MSVC
Fixed warnings for MSVC