added missing defined() in #elif

gcc >= 4.4 requires a condition in #elif.
Merge pull request #930 from bmiklautz/elif

added missing defined() in #elif