fixed some minor issues with compilation