fix to compile issue #7 on mac 10.8.2