Fix install targets, remove some warnings