made files compilable and generate lib