Remove warnings from API compiler