Fix file header for ELPA compatibility, add dependencies