adapt for debian compilation