Fix compile error

Fix compile error due to use of "elseif" instead of "else if" (no
space).
Merge pull request #7 from Petr1fied/master

Fix compile error