Fixed compilier error and warning with gcc 4.7.
Removed compiler warnings compare signed and unsigned
Merge pull request #3 from germantux83/master

Fixed compilier error and warning with gcc 4.7 and enable static build.