Fixed errors under emacs 24.2 and org-mode 8

When I tried to use org-octopress I got some run-time errors. This patch fixes them.

--dmg

p.s. thank for all the work.