made gcc lib dir working cross-platform