Fixed API constants not being exposed.

Also bumped version to 4.0.1.