Added Windows support.
Fixed some compiler warnings and added the Code::Blocks project file.