fix build rules