Fix error with bind() in VS2012

Fix #2158

Please **double** check if it work for all platforms. :-)