reimpl windows api interfaces
fix some compile link error for cygwin