enable -Wextra and -Wpedantic, fix some warnings
make it ready for announcement