Adding window api for mac. Update build to target platform