Fix all flycheck/compiler warnings; closes #2