fixed setTrainPosition c interface
added compiler flag to make project windows xp compatible