Merge pull request #1 from cbpark/master

Add compile options for OS X
use Lambert W function instead of root finding