made an option to turn off static libs generation to speed up make time in some cases