Add some files to fit VS's non-c99 syntax, WTF

mainly:
1. float point functions
2. some weird definitions
Fix some uninitialized variables problem

This causes crash in VS because it initialize variables to
non zero value