Now building as static lib. Resolved some warnings.