Fix bug with empty defines.
Added reg test for ifndef bug.