Implemented safecall macro for MSVC