Fix compile errors that occurred on Lion

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