Libraries moved to correct path + advances in XML based build function