update sdk May 14
fix memory leaks
fix compile flags