allow core and lib 1.2 and satisfy -Werror