Use WARN_MESSAGE macro instead of the old WARNING_MESSAGE and WARN

As discussed on the mailing list