remove some unused defines, #86
little cast fix, #78