- Fixed build problem under Mac OS 10.8.
- Fixed memory leak in the plain C variant.