Fixed compiler warnings for make posix