fix build issues for release