Adds `std::nothrow` to the `new` statements

Since cocos2d-x doesn't support exceptions, it is important to add
`std::nothrow` to all the `new` statements