waf: renamed main's file, use correct pthread flags

Don't know how I missed that.