Fixed hard coded references

Removed reference to OS X SDK
Changed to arch flags to refer to current OS