fix -Wmissing-declarations