Added new file to VS2008 and OSX project.
Fixed compiling errors in OSX.