[addon-helpers] add option to prefer static libs in cmake