add autoload cookie for minor mode

fixes #7.