Add OS X target, import framework module in tests
Fix visibility on ?? function definition