added explicit cast to enum type to avoid compiler error
uncommented needed header file (avoids compiler error on ubuntu 13.04)