A couple fixes so that the library builds in M4A 4.2.7

After a fresh clone I was unable to compile the library with M4A 4.2.7.

I fixed a couple minor issues so that the library compiles. I tested by running the sample application.