Fixes a lot of warnings for the API. ^^