add OS switch to select system library