Fix compilation errors, now rebar compatible.
Add missing \== operator.