Make math module actually use the math flags

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Fixed math module's compile problem

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>