Fixes

* Fixed linking error caused by uninitialized static variables
* Fixed warning caused by casting constant to float instead of double