Added FPS tracking, moved Platform code to common.