base: use primary_ipaddress for node search
php: add bcmath to default use flags