Fix math project

Fix math project to compile without warnings and add round() function.
That function is missing in MSVS runtime, so it is a nice place to hold it.