Have you checked out Nesicide? It's an IDE for NES development. Might help here. Again, Windows-only, but Wine might help.