Bug Fixes and Min OS SDK rev