(*)fixed plugin initialization on BSD