The complex X-ray spectrum of NGC 4507