fixed MSVC warnings and iOS framework compile error