fixed warnings for QtKit on Mac