Fix compilation errors that occurred on Lion

Your suggestion worked! Here's a pull request for your convenience!