Implemented math.* runtime library. Fixed compiler bugs.