PIV verbosity and Linux compatibility

Increased verbosity of various PIV functions. Also generalized some
functions for improved Windows/Linux compatibility.