Fixed bugs with security sdk comilation