Fix the gyp so it compiles.

Fixed various typos and added libraries to the head.gyp.