Fix for compiler warnings

This fixes various compiler warnings. Most of them pertained to C-style
string methods being unsafe, so several methods now include parameters
to indicate the size of the destination buffer.

Also updated .gitignore file to ignore the apparently binary sdf and
opensdf files.