fix compile issue on mac 10.8.2

this compiles on my machine for issue #7