Updated build script to be less specific about library filetypes