read the above post, if you were to make a small extension cable, it would be possible to seal around it so that just the plug would be exposed.
edit: for around the headphones maybe a rubber gasket or a sleave that would go around the jack extension and the headphone plug?