fix potentially uninitialized variable in nearest_faction()
do not ignore return value of daemon(3)
fix uninitialized variable in calculate_laser_damage
fix uninitialized variable in l_set_player_damage
fix ignored return value of fread function