Remove unneeded if statement.

Both branches are calling the same code.
Fix wrong expression.

Compare returns 0 if the value matches.
Unsigned numbers can't be smaller than 0.
Remove throwing nothing.

Also this should be a programmer error so assert is better.
Fix uninitialized iterator.
Move call after checking nullptr.
Fix wrong expression.
Fix wrong expression.
Fix expression.

BOOL should not be compared to TRUE.
Remove unneeded expression.
Don't create unused strings.
new should never return nullptr.

The OS should kill other resources or freeze the process
until there is enough RAM. Ember would crash somewhere
anyways in such situation.
Fix autotools for nameclash fixes.