working build of hw3d on mac os.