Fixed all warnings and made boost static