add osx framework support