Add Apache license
C89 compatibility
Add SHOULD_MEM_EQUAL
Merge pull request #1 from cxong/master

Some minor enhancements, add SHOULD_MEM_EQUAL. 
contributor: cxong