Port to GNU build system