France, Brazil forge military pact