Fixed check for blplugin header and compilation error.