Fixes compiling issues with the API