Fixes compiling issues with API files