Solved compilation issues on the newest MacOSX 10.9.