shell script to build both bare metal and linux libraries