small fixes to let program build