Fix #1: Build errors on OS X Mavericks

This commit fixes the issue #1