Update codebase.h

Fix FMAX/FMIN error on VS2013
Merge pull request #292 from roberthauck/master

Update codebase.h
Rename libply -> libtriply to avoid name conflicts
Merge pull request #293 from eile/master

Rename libply -> libtriply to avoid name conflicts
Fix Win32 configure