use cmake, much easier...