Removing trailing semicolons from defines statements