fix BN build