Mazda reports positive profits for the third quarter