fort louisville had once been the strongest and most expensive fort in north america but had a weakness : it had been built by the french as a coastal defense against the british navy and its defenses faced seaward .