Drop -ldl from all targets but john itself.