Fix #15.
Fix #16: NPE on unterminated ifdef.