Added include guard in api.h

Now, the included files will no longer create infinite recursion.