Added #defines to build properly on gentoo