update library output path on linux/mac platforms