changes to pass make distcheck
fixes to pass make distcheck