fix GNU extension warnings