Add nan as dependency.
Use nan to wrap around V8 functions.
Link to AppKit.framework on OS X.