1. Fixed compilation and linking errors.