Dehardcode .lib extensions in build-common-xdk.sh