add frameworks setting for OSX
add cabal file for example/
Merge pull request #3 from cosmo0920/add-example-cabal

Add example cabal and framework reference for OSX