C fixes and custom compiler command because of poor implementation of