set source and target compile for build; cleanup some warnings