Add missing header include
Replace int with size_t to avoid possible size mismatch
Merge pull request #380 from rolk/380_spline

Fix small problems in spline testing code which give build errors