Compiler warning + static build

fixed a bunch of warnings found using a new compiler, mostly uninitalized variables and comparing signed to unsigned variables. Also fixed the build process for static plfs -- it now links with static yaml