A few fixes that will help you to produce static spkg binary
Oops, forgot to add static libs in previous commit