Compilation fix: #elseifdef is not understood by all compilers.

Replaced it with #elif defined(), which is.