Fix some warnings.

Should fix #24.