Fixed some compiler warnings

* added a static library project
* fixed some sign related warnings