fixed a few errors that prevented plfit from compiling properly with MSVC