Commented some stuff to work in OSWindow for MacOS X.