configure: add configure check for GCC -Wold-style-definition

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>