Modify mk file and solve warnings